import { Module } from '@nestjs/common';

import { TypeOrmModule } from '@nestjs/typeorm';
import { JwtUtils } from '../01_auth/jwt.utils';
import { IBaseService } from '../00_base/IBaseService';
import { JwtService } from '@nestjs/jwt';
import { IBaseEntity } from '../00_base/IBaseEntity';
import { RoleController } from './role.controller';
import { RoleService } from './role.service';
import { SysRole } from './entities/role.entity';
import { SysRoleMenu } from './entities/role.menu.entity';

@Module({
  imports: [TypeOrmModule.forFeature([IBaseEntity, SysRole, SysRoleMenu])],
  controllers: [RoleController],
  providers: [RoleService, JwtService, IBaseService, JwtUtils],
  exports: [RoleService],
})
export class RoleModule {}
